package Wires.diagram.navigator;

import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.gmf.runtime.common.ui.services.parser.IParser;
import org.eclipse.gmf.runtime.common.ui.services.parser.ParserOptions;
import org.eclipse.gmf.runtime.common.ui.services.parser.ParserService;
import org.eclipse.gmf.runtime.emf.type.core.IElementType;
import org.eclipse.gmf.runtime.notation.View;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.ImageRegistry;
import org.eclipse.jface.viewers.ITreePathLabelProvider;
import org.eclipse.jface.viewers.LabelProvider;
import org.eclipse.jface.viewers.TreePath;
import org.eclipse.jface.viewers.ViewerLabel;
import org.eclipse.swt.graphics.Image;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.navigator.ICommonContentExtensionSite;
import org.eclipse.ui.navigator.ICommonLabelProvider;

/**
 * @generated
 */
public class WiresNavigatorLabelProvider extends LabelProvider implements
		ICommonLabelProvider, ITreePathLabelProvider {

	/**
	 * @generated
	 */
	static {
		Wires.diagram.part.WiresDiagramEditorPlugin
				.getInstance()
				.getImageRegistry()
				.put(
						"Navigator?UnknownElement", ImageDescriptor.getMissingImageDescriptor()); //$NON-NLS-1$
		Wires.diagram.part.WiresDiagramEditorPlugin
				.getInstance()
				.getImageRegistry()
				.put(
						"Navigator?ImageNotFound", ImageDescriptor.getMissingImageDescriptor()); //$NON-NLS-1$
	}

	/**
	 * @generated
	 */
	public void updateLabel(ViewerLabel label, TreePath elementPath) {
		Object element = elementPath.getLastSegment();
		if (element instanceof Wires.diagram.navigator.WiresNavigatorItem
				&& !isOwnView(((Wires.diagram.navigator.WiresNavigatorItem) element)
						.getView())) {
			return;
		}
		label.setText(getText(element));
		label.setImage(getImage(element));
	}

	/**
	 * @generated
	 */
	public Image getImage(Object element) {
		if (element instanceof Wires.diagram.navigator.WiresNavigatorGroup) {
			Wires.diagram.navigator.WiresNavigatorGroup group = (Wires.diagram.navigator.WiresNavigatorGroup) element;
			return Wires.diagram.part.WiresDiagramEditorPlugin.getInstance()
					.getBundledImage(group.getIcon());
		}

		if (element instanceof Wires.diagram.navigator.WiresNavigatorItem) {
			Wires.diagram.navigator.WiresNavigatorItem navigatorItem = (Wires.diagram.navigator.WiresNavigatorItem) element;
			if (!isOwnView(navigatorItem.getView())) {
				return super.getImage(element);
			}
			return getImage(navigatorItem.getView());
		}

		return super.getImage(element);
	}

	/**
	 * @generated
	 */
	public Image getImage(View view) {
		switch (Wires.diagram.part.WiresVisualIDRegistry.getVisualID(view)) {
		case Wires.diagram.edit.parts.WiresSpecificationEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Diagram?http://www.lcc.uma.es/Wires/1.0?WiresSpecification", Wires.diagram.providers.WiresElementTypes.WiresSpecification_79); //$NON-NLS-1$
		case Wires.diagram.edit.parts.AtomicModelTransformationEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?AtomicModelTransformation", Wires.diagram.providers.WiresElementTypes.AtomicModelTransformation_1001); //$NON-NLS-1$
		case Wires.diagram.edit.parts.IdentityTransformationEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?IdentityTransformation", Wires.diagram.providers.WiresElementTypes.IdentityTransformation_1002); //$NON-NLS-1$
		case Wires.diagram.edit.parts.GenericTransformationEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?GenericTransformation", Wires.diagram.providers.WiresElementTypes.GenericTransformation_1003); //$NON-NLS-1$
		case Wires.diagram.edit.parts.CompositeTransformationEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?CompositeTransformation", Wires.diagram.providers.WiresElementTypes.CompositeTransformation_1004); //$NON-NLS-1$
		case Wires.diagram.edit.parts.Model2TextTransformationEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?Model2TextTransformation", Wires.diagram.providers.WiresElementTypes.Model2TextTransformation_1005); //$NON-NLS-1$
		case Wires.diagram.edit.parts.QueryEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?Query", Wires.diagram.providers.WiresElementTypes.Query_1006); //$NON-NLS-1$
		case Wires.diagram.edit.parts.BasicDataEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?BasicData", Wires.diagram.providers.WiresElementTypes.BasicData_1007); //$NON-NLS-1$
		case Wires.diagram.edit.parts.ModelEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?Model", Wires.diagram.providers.WiresElementTypes.Model_1008); //$NON-NLS-1$
		case Wires.diagram.edit.parts.ModelTypeEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?ModelType", Wires.diagram.providers.WiresElementTypes.ModelType_1009); //$NON-NLS-1$
		case Wires.diagram.edit.parts.DecisionNodeEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?DecisionNode", Wires.diagram.providers.WiresElementTypes.DecisionNode_1010); //$NON-NLS-1$
		case Wires.diagram.edit.parts.LibraryEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?Library", Wires.diagram.providers.WiresElementTypes.Library_1011); //$NON-NLS-1$
		case Wires.diagram.edit.parts.AtomicModelTransfomationTypeEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?AtomicModelTransfomationType", Wires.diagram.providers.WiresElementTypes.AtomicModelTransfomationType_1012); //$NON-NLS-1$
		case Wires.diagram.edit.parts.Model2TextTransformationTypeEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?Model2TextTransformationType", Wires.diagram.providers.WiresElementTypes.Model2TextTransformationType_1013); //$NON-NLS-1$
		case Wires.diagram.edit.parts.QueryTypeEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?QueryType", Wires.diagram.providers.WiresElementTypes.QueryType_1014); //$NON-NLS-1$
		case Wires.diagram.edit.parts.CompositeTransformationTypeEditPart.VISUAL_ID:
			return getImage(
					"Navigator?TopLevelNode?http://www.lcc.uma.es/Wires/1.0?CompositeTransformationType", Wires.diagram.providers.WiresElementTypes.CompositeTransformationType_1015); //$NON-NLS-1$
		case Wires.diagram.edit.parts.InputActualParameterEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?InputActualParameter", Wires.diagram.providers.WiresElementTypes.InputActualParameter_2001); //$NON-NLS-1$
		case Wires.diagram.edit.parts.OutputActualParameterEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?OutputActualParameter", Wires.diagram.providers.WiresElementTypes.OutputActualParameter_2002); //$NON-NLS-1$
		case Wires.diagram.edit.parts.TypeParameterEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?TypeParameter", Wires.diagram.providers.WiresElementTypes.TypeParameter_2003); //$NON-NLS-1$
		case Wires.diagram.edit.parts.InputActualParameter2EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?InputActualParameter", Wires.diagram.providers.WiresElementTypes.InputActualParameter_2004); //$NON-NLS-1$
		case Wires.diagram.edit.parts.LibraryRefEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?LibraryRef", Wires.diagram.providers.WiresElementTypes.LibraryRef_2005); //$NON-NLS-1$
		case Wires.diagram.edit.parts.InputFormalParameterEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?InputFormalParameter", Wires.diagram.providers.WiresElementTypes.InputFormalParameter_2006); //$NON-NLS-1$
		case Wires.diagram.edit.parts.OutputFormalParameterEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?OutputFormalParameter", Wires.diagram.providers.WiresElementTypes.OutputFormalParameter_2007); //$NON-NLS-1$
		case Wires.diagram.edit.parts.LibraryRef2EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?LibraryRef", Wires.diagram.providers.WiresElementTypes.LibraryRef_2008); //$NON-NLS-1$
		case Wires.diagram.edit.parts.Model2EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?Model", Wires.diagram.providers.WiresElementTypes.Model_2009); //$NON-NLS-1$
		case Wires.diagram.edit.parts.BasicData2EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?BasicData", Wires.diagram.providers.WiresElementTypes.BasicData_2010); //$NON-NLS-1$
		case Wires.diagram.edit.parts.CompositeTransformation2EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?CompositeTransformation", Wires.diagram.providers.WiresElementTypes.CompositeTransformation_2011); //$NON-NLS-1$
		case Wires.diagram.edit.parts.AtomicModelTransformation2EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?AtomicModelTransformation", Wires.diagram.providers.WiresElementTypes.AtomicModelTransformation_2012); //$NON-NLS-1$
		case Wires.diagram.edit.parts.GenericTransformation2EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?GenericTransformation", Wires.diagram.providers.WiresElementTypes.GenericTransformation_2013); //$NON-NLS-1$
		case Wires.diagram.edit.parts.IdentityTransformation2EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?IdentityTransformation", Wires.diagram.providers.WiresElementTypes.IdentityTransformation_2014); //$NON-NLS-1$
		case Wires.diagram.edit.parts.Query2EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?Query", Wires.diagram.providers.WiresElementTypes.Query_2015); //$NON-NLS-1$
		case Wires.diagram.edit.parts.DecisionNode2EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?DecisionNode", Wires.diagram.providers.WiresElementTypes.DecisionNode_2016); //$NON-NLS-1$
		case Wires.diagram.edit.parts.Model2TextTransformation2EditPart.VISUAL_ID:
			return getImage(
					"Navigator?Node?http://www.lcc.uma.es/Wires/1.0?Model2TextTransformation", Wires.diagram.providers.WiresElementTypes.Model2TextTransformation_2017); //$NON-NLS-1$
		case Wires.diagram.edit.parts.DataFlowEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.lcc.uma.es/Wires/1.0?DataFlow", Wires.diagram.providers.WiresElementTypes.DataFlow_3001); //$NON-NLS-1$
		case Wires.diagram.edit.parts.DecisionNodeTrueBranchEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.lcc.uma.es/Wires/1.0?DecisionNode?trueBranch", Wires.diagram.providers.WiresElementTypes.DecisionNodeTrueBranch_3002); //$NON-NLS-1$
		case Wires.diagram.edit.parts.DecisionNodeFalseBranchEditPart.VISUAL_ID:
			return getImage(
					"Navigator?Link?http://www.lcc.uma.es/Wires/1.0?DecisionNode?falseBranch", Wires.diagram.providers.WiresElementTypes.DecisionNodeFalseBranch_3003); //$NON-NLS-1$
		}
		return getImage("Navigator?UnknownElement", null); //$NON-NLS-1$
	}

	/**
	 * @generated
	 */
	private Image getImage(String key, IElementType elementType) {
		ImageRegistry imageRegistry = Wires.diagram.part.WiresDiagramEditorPlugin
				.getInstance().getImageRegistry();
		Image image = imageRegistry.get(key);
		if (image == null
				&& elementType != null
				&& Wires.diagram.providers.WiresElementTypes
						.isKnownElementType(elementType)) {
			image = Wires.diagram.providers.WiresElementTypes
					.getImage(elementType);
			imageRegistry.put(key, image);
		}

		if (image == null) {
			image = imageRegistry.get("Navigator?ImageNotFound"); //$NON-NLS-1$
			imageRegistry.put(key, image);
		}
		return image;
	}

	/**
	 * @generated
	 */
	public String getText(Object element) {
		if (element instanceof Wires.diagram.navigator.WiresNavigatorGroup) {
			Wires.diagram.navigator.WiresNavigatorGroup group = (Wires.diagram.navigator.WiresNavigatorGroup) element;
			return group.getGroupName();
		}

		if (element instanceof Wires.diagram.navigator.WiresNavigatorItem) {
			Wires.diagram.navigator.WiresNavigatorItem navigatorItem = (Wires.diagram.navigator.WiresNavigatorItem) element;
			if (!isOwnView(navigatorItem.getView())) {
				return null;
			}
			return getText(navigatorItem.getView());
		}

		return super.getText(element);
	}

	/**
	 * @generated
	 */
	public String getText(View view) {
		if (view.getElement() != null && view.getElement().eIsProxy()) {
			return getUnresolvedDomainElementProxyText(view);
		}
		switch (Wires.diagram.part.WiresVisualIDRegistry.getVisualID(view)) {
		case Wires.diagram.edit.parts.WiresSpecificationEditPart.VISUAL_ID:
			return getWiresSpecification_79Text(view);
		case Wires.diagram.edit.parts.AtomicModelTransformationEditPart.VISUAL_ID:
			return getAtomicModelTransformation_1001Text(view);
		case Wires.diagram.edit.parts.IdentityTransformationEditPart.VISUAL_ID:
			return getIdentityTransformation_1002Text(view);
		case Wires.diagram.edit.parts.GenericTransformationEditPart.VISUAL_ID:
			return getGenericTransformation_1003Text(view);
		case Wires.diagram.edit.parts.CompositeTransformationEditPart.VISUAL_ID:
			return getCompositeTransformation_1004Text(view);
		case Wires.diagram.edit.parts.Model2TextTransformationEditPart.VISUAL_ID:
			return getModel2TextTransformation_1005Text(view);
		case Wires.diagram.edit.parts.QueryEditPart.VISUAL_ID:
			return getQuery_1006Text(view);
		case Wires.diagram.edit.parts.BasicDataEditPart.VISUAL_ID:
			return getBasicData_1007Text(view);
		case Wires.diagram.edit.parts.ModelEditPart.VISUAL_ID:
			return getModel_1008Text(view);
		case Wires.diagram.edit.parts.ModelTypeEditPart.VISUAL_ID:
			return getModelType_1009Text(view);
		case Wires.diagram.edit.parts.DecisionNodeEditPart.VISUAL_ID:
			return getDecisionNode_1010Text(view);
		case Wires.diagram.edit.parts.LibraryEditPart.VISUAL_ID:
			return getLibrary_1011Text(view);
		case Wires.diagram.edit.parts.AtomicModelTransfomationTypeEditPart.VISUAL_ID:
			return getAtomicModelTransfomationType_1012Text(view);
		case Wires.diagram.edit.parts.Model2TextTransformationTypeEditPart.VISUAL_ID:
			return getModel2TextTransformationType_1013Text(view);
		case Wires.diagram.edit.parts.QueryTypeEditPart.VISUAL_ID:
			return getQueryType_1014Text(view);
		case Wires.diagram.edit.parts.CompositeTransformationTypeEditPart.VISUAL_ID:
			return getCompositeTransformationType_1015Text(view);
		case Wires.diagram.edit.parts.InputActualParameterEditPart.VISUAL_ID:
			return getInputActualParameter_2001Text(view);
		case Wires.diagram.edit.parts.OutputActualParameterEditPart.VISUAL_ID:
			return getOutputActualParameter_2002Text(view);
		case Wires.diagram.edit.parts.TypeParameterEditPart.VISUAL_ID:
			return getTypeParameter_2003Text(view);
		case Wires.diagram.edit.parts.InputActualParameter2EditPart.VISUAL_ID:
			return getInputActualParameter_2004Text(view);
		case Wires.diagram.edit.parts.LibraryRefEditPart.VISUAL_ID:
			return getLibraryRef_2005Text(view);
		case Wires.diagram.edit.parts.InputFormalParameterEditPart.VISUAL_ID:
			return getInputFormalParameter_2006Text(view);
		case Wires.diagram.edit.parts.OutputFormalParameterEditPart.VISUAL_ID:
			return getOutputFormalParameter_2007Text(view);
		case Wires.diagram.edit.parts.LibraryRef2EditPart.VISUAL_ID:
			return getLibraryRef_2008Text(view);
		case Wires.diagram.edit.parts.Model2EditPart.VISUAL_ID:
			return getModel_2009Text(view);
		case Wires.diagram.edit.parts.BasicData2EditPart.VISUAL_ID:
			return getBasicData_2010Text(view);
		case Wires.diagram.edit.parts.CompositeTransformation2EditPart.VISUAL_ID:
			return getCompositeTransformation_2011Text(view);
		case Wires.diagram.edit.parts.AtomicModelTransformation2EditPart.VISUAL_ID:
			return getAtomicModelTransformation_2012Text(view);
		case Wires.diagram.edit.parts.GenericTransformation2EditPart.VISUAL_ID:
			return getGenericTransformation_2013Text(view);
		case Wires.diagram.edit.parts.IdentityTransformation2EditPart.VISUAL_ID:
			return getIdentityTransformation_2014Text(view);
		case Wires.diagram.edit.parts.Query2EditPart.VISUAL_ID:
			return getQuery_2015Text(view);
		case Wires.diagram.edit.parts.DecisionNode2EditPart.VISUAL_ID:
			return getDecisionNode_2016Text(view);
		case Wires.diagram.edit.parts.Model2TextTransformation2EditPart.VISUAL_ID:
			return getModel2TextTransformation_2017Text(view);
		case Wires.diagram.edit.parts.DataFlowEditPart.VISUAL_ID:
			return getDataFlow_3001Text(view);
		case Wires.diagram.edit.parts.DecisionNodeTrueBranchEditPart.VISUAL_ID:
			return getDecisionNodeTrueBranch_3002Text(view);
		case Wires.diagram.edit.parts.DecisionNodeFalseBranchEditPart.VISUAL_ID:
			return getDecisionNodeFalseBranch_3003Text(view);
		}
		return getUnknownElementText(view);
	}

	/**
	 * @generated
	 */
	private String getWiresSpecification_79Text(View view) {
		return ""; //$NON-NLS-1$
	}

	/**
	 * @generated
	 */
	private String getAtomicModelTransformation_1001Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.AtomicModelTransformation_1001,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.AtomicModelTransformationNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4003); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getIdentityTransformation_1002Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.IdentityTransformation_1002,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.IdentityTransformationNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4006); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getGenericTransformation_1003Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.GenericTransformation_1003,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.GenericTransformationNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4007); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getCompositeTransformation_1004Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.CompositeTransformation_1004,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.CompositeTransformationNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4010); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getModel2TextTransformation_1005Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.Model2TextTransformation_1005,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.Model2TextTransformationNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4013); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getQuery_1006Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.Query_1006,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.QueryNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4016); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getBasicData_1007Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.BasicData_1007,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.BasicDataNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4019); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getModel_1008Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.Model_1008,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.ModelNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4022); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getModelType_1009Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.ModelType_1009,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.ModelTypeNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4025); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getDecisionNode_1010Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.DecisionNode_1010,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.DecisionNodeExpressionEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4027); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getLibrary_1011Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.Library_1011,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.LibraryNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4029); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getAtomicModelTransfomationType_1012Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.AtomicModelTransfomationType_1012,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.AtomicModelTransfomationTypeNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4033); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getModel2TextTransformationType_1013Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.Model2TextTransformationType_1013,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.Model2TextTransformationTypeNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4034); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getQueryType_1014Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.QueryType_1014,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.QueryTypeNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4035); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getCompositeTransformationType_1015Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.CompositeTransformationType_1015,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.CompositeTransformationTypeNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4059); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getInputActualParameter_2001Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.InputActualParameter_2001,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.InputActualParameterNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4001); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getOutputActualParameter_2002Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.OutputActualParameter_2002,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.OutputActualParameterNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4002); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getTypeParameter_2003Text(View view) {
		Wires.TypeParameter domainModelElement = (Wires.TypeParameter) view
				.getElement();
		if (domainModelElement != null) {
			return domainModelElement.getName();
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"No domain element for view with visualID = " + 2003); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}
	}

	/**
	 * @generated
	 */
	private String getInputActualParameter_2004Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.InputActualParameter_2004,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.InputActualParameterName2EditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4026); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getLibraryRef_2005Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.LibraryRef_2005,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.LibraryRefNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4028); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getInputFormalParameter_2006Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.InputFormalParameter_2006,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.InputFormalParameterNameTypeNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4030); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getOutputFormalParameter_2007Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.OutputFormalParameter_2007,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.OutputFormalParameterNameTypeNameEditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4031); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getLibraryRef_2008Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.LibraryRef_2008,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.LibraryRefName2EditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4032); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getModel_2009Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.Model_2009,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.ModelName2EditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4036); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getBasicData_2010Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.BasicData_2010,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.BasicDataName2EditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4039); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getCompositeTransformation_2011Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.CompositeTransformation_2011,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.CompositeTransformationName2EditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4042); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getAtomicModelTransformation_2012Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.AtomicModelTransformation_2012,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.AtomicModelTransformationName2EditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4045); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getGenericTransformation_2013Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.GenericTransformation_2013,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.GenericTransformationName2EditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4048); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getIdentityTransformation_2014Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.IdentityTransformation_2014,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.IdentityTransformationName2EditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4051); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getQuery_2015Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.Query_2015,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.QueryName2EditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4052); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getDecisionNode_2016Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.DecisionNode_2016,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.DecisionNodeExpression2EditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4055); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getModel2TextTransformation_2017Text(View view) {
		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.Model2TextTransformation_2017,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.Model2TextTransformationName2EditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);

		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			Wires.diagram.part.WiresDiagramEditorPlugin.getInstance().logError(
					"Parser was not found for label " + 4056); //$NON-NLS-1$
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getDataFlow_3001Text(View view) {
		return ""; //$NON-NLS-1$
	}

	/**
	 * @generated
	 */
	private String getDecisionNodeTrueBranch_3002Text(View view) {

		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.DecisionNodeTrueBranch_3002,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.WrappingLabel29EditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);
		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getDecisionNodeFalseBranch_3003Text(View view) {

		IAdaptable hintAdapter = new Wires.diagram.providers.WiresParserProvider.HintAdapter(
				Wires.diagram.providers.WiresElementTypes.DecisionNodeFalseBranch_3003,
				(view.getElement() != null ? view.getElement() : view),
				Wires.diagram.part.WiresVisualIDRegistry
						.getType(Wires.diagram.edit.parts.WrappingLabel30EditPart.VISUAL_ID));
		IParser parser = ParserService.getInstance().getParser(hintAdapter);
		if (parser != null) {
			return parser.getPrintString(hintAdapter, ParserOptions.NONE
					.intValue());
		} else {
			return ""; //$NON-NLS-1$
		}

	}

	/**
	 * @generated
	 */
	private String getUnknownElementText(View view) {
		return "<UnknownElement Visual_ID = " + view.getType() + ">"; //$NON-NLS-1$ //$NON-NLS-2$
	}

	/**
	 * @generated
	 */
	private String getUnresolvedDomainElementProxyText(View view) {
		return "<Unresolved domain element Visual_ID = " + view.getType() + ">"; //$NON-NLS-1$ //$NON-NLS-2$
	}

	/**
	 * @generated
	 */
	public void init(ICommonContentExtensionSite aConfig) {
	}

	/**
	 * @generated
	 */
	public void restoreState(IMemento aMemento) {
	}

	/**
	 * @generated
	 */
	public void saveState(IMemento aMemento) {
	}

	/**
	 * @generated
	 */
	public String getDescription(Object anElement) {
		return null;
	}

	/**
	 * @generated
	 */
	private boolean isOwnView(View view) {
		return Wires.diagram.edit.parts.WiresSpecificationEditPart.MODEL_ID
				.equals(Wires.diagram.part.WiresVisualIDRegistry
						.getModelID(view));
	}

}
